package com.example.rest;

import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

//@RequestMapping("/wzw")
@RestController
public class ExcelExportController {

    @Autowired
    UserService userService;

    @RequestMapping("/excelExport")
    public String ExcelExport(HttpServletResponse response) throws IOException {
        userService.ExcelExport(response);
        return "hello world";
    }

}
